package com.cc8w.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.dubbo.config.annotation.Service;
import com.cc8w.admin.mapper.PermssionMapper;
import com.cc8w.admin.service.PermssionService;


@Service(version = "1.0.0",timeout = 10000,interfaceClass=PermssionService.class) //注意：这里是dubbo的注解,这个等价于<dubbo:service...>
@Component("permssionService") //spring 的@service注解也可以用@Component
@Transactional
public class PermssionServiceImpl implements PermssionService {
    @Autowired
    @Qualifier("permssionMapper")
    private PermssionMapper permssionMapper;

    @SuppressWarnings("unchecked")
	@Override
    public List<String> queryPermissionsByUserName(String userName){
        return  permssionMapper.queryPermissionsByUserName(userName);

    }



}
